package ycl.scheduled.service;

import ycl.scheduled.common.models.req.scheduled.ScheduledCreateReq;
import ycl.scheduled.entity.SysUserScheduled;
import ycl.scheduled.common.base.service.BaseService;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户日程安排 服务类
 * </p>
 *
 * @author ycl
 * @since 2022-01-20 00:04:45
 */
public interface SysUserScheduledService extends BaseService<SysUserScheduled> {

	/**
	 * 创建日程
	 *
	 * @param req 日程
	 */
	void create(HttpServletRequest request, ScheduledCreateReq req);

	/**
	 * 1: 正常创建
	 * 0: 可创建
	 * -1: 不可创建
	 *
	 * @param request 用户信息
	 * @param req     日程
	 * @return 数字标识
	 */
	int verify(HttpServletRequest request, ScheduledCreateReq req);
}
